<?php if (!defined('THINK_PATH')) exit(); /*a:1:{s:46:"D:\work\library/app/library\view\seat\code.php";i:1534130540;}*/ ?>
<style type="text/css">
	.box{}
	.code_box{box-sizing:border-box;padding: 0px 50px;}
	.btn_box{text-align: center;}
	img{max-width: 100%;max-height: 100%;display: block;margin: 0 auto;}
	.btn{display: inline-block;padding: 10px 100px;border-radius: 5px;text-decoration: none;color: #fff;}
	.red{background: #FF5722;}
	.ts{line-height: 100px;text-align: center;}
</style>
<div class="box"> 
	<div class="code_box">
	<?php if(!(empty($code) || (($code instanceof \think\Collection || $code instanceof \think\Paginator ) && $code->isEmpty()))): ?>
		<img src="<?php echo $code; ?>" class="codeimg">
	<?php else: ?>
		<div class="ts">二维码生成失败，请删除重新生成</div>
	<?php endif; ?>
	</div>
	<div class="btn_box"><a href="<?php echo $code; ?>" download="<?php echo $codename; ?>" class="btn red">下载</a></div>
</div>